/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Seminole</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15342 (C-0-T14914-S14915-S14916-S15342-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianSeminole()
 * @model extendedMetaData="name='RaceAmericanIndianSeminole'"
 * @generated
 */
public enum RaceAmericanIndianSeminole implements Enumerator {
	/**
	 * The '<em><b>15669</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15669_VALUE
	 * @generated
	 * @ordered
	 */
	_15669(0, "_15669", "1566-9"),

	/**
	 * The '<em><b>15677</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15677_VALUE
	 * @generated
	 * @ordered
	 */
	_15677(1, "_15677", "1567-7"),

	/**
	 * The '<em><b>15685</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15685_VALUE
	 * @generated
	 * @ordered
	 */
	_15685(2, "_15685", "1568-5"),

	/**
	 * The '<em><b>15693</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15693_VALUE
	 * @generated
	 * @ordered
	 */
	_15693(3, "_15693", "1569-3"),

	/**
	 * The '<em><b>15701</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15701_VALUE
	 * @generated
	 * @ordered
	 */
	_15701(4, "_15701", "1570-1"),

	/**
	 * The '<em><b>15719</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_15719_VALUE
	 * @generated
	 * @ordered
	 */
	_15719(5, "_15719", "1571-9");

	/**
	 * The '<em><b>15669</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15669</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15669
	 * @model literal="1566-9"
	 * @generated
	 * @ordered
	 */
	public static final int _15669_VALUE = 0;

	/**
	 * The '<em><b>15677</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15677</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15677
	 * @model literal="1567-7"
	 * @generated
	 * @ordered
	 */
	public static final int _15677_VALUE = 1;

	/**
	 * The '<em><b>15685</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15685</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15685
	 * @model literal="1568-5"
	 * @generated
	 * @ordered
	 */
	public static final int _15685_VALUE = 2;

	/**
	 * The '<em><b>15693</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15693</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15693
	 * @model literal="1569-3"
	 * @generated
	 * @ordered
	 */
	public static final int _15693_VALUE = 3;

	/**
	 * The '<em><b>15701</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15701</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15701
	 * @model literal="1570-1"
	 * @generated
	 * @ordered
	 */
	public static final int _15701_VALUE = 4;

	/**
	 * The '<em><b>15719</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>15719</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_15719
	 * @model literal="1571-9"
	 * @generated
	 * @ordered
	 */
	public static final int _15719_VALUE = 5;

	/**
	 * An array of all the '<em><b>Race American Indian Seminole</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianSeminole[] VALUES_ARRAY =
		new RaceAmericanIndianSeminole[] {
			_15669,
			_15677,
			_15685,
			_15693,
			_15701,
			_15719,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Seminole</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianSeminole> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Seminole</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianSeminole get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianSeminole result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Seminole</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianSeminole getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianSeminole result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Seminole</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianSeminole get(int value) {
		switch (value) {
			case _15669_VALUE: return _15669;
			case _15677_VALUE: return _15677;
			case _15685_VALUE: return _15685;
			case _15693_VALUE: return _15693;
			case _15701_VALUE: return _15701;
			case _15719_VALUE: return _15719;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianSeminole(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianSeminole
